{% extends "movies/default_template.html" %}

{% block title %}
	NMJ - View movie
{% endblock %}

{% block content %}
	<form action="{{ request_path }}" method="POST">Search for movie : <input name="title" value="{{ title }}" /><input type="submit" /></form>
	{% if propositions %}
		Choose the poster that best represent your movie.<br/><br/> 
		{% for proposition in propositions %}
			<div class="movie">
				<img class="movie" src="{{proposition.posters.0.url}}" /><br/>
				{{ proposition.title }}<br/>
				{{ proposition.tmdb_id }}
			</div>
		{% endfor %}
	{% else %}
		<p>Sorry, no proposition</p>
	{% endif %}
{% endblock %}